package com.itcast.finaldemo.Demo01;

import java.util.Scanner;

/*
final的使用
*/
public class Test {
    public static final int HUA_FEI_CHA_XUN = 1;
    public static final int HUA_FEI_CHONG_ZHI = 2;
    public static final int LIU_LIANG_CHA_XUN = 3;
    public static final int LIU_LIANG_CHONG_ZHI = 4;
    public static final int REN_GONG_FU_WU = 0;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入命令：");
        System.out.println("1、话费充值");
        System.out.println("2、话费查询");
        System.out.println("3、流量充值");
        System.out.println("4、流量查询");
        System.out.println("0、人工服务");
        int choose = sc.nextInt();
        switch (choose) {
            case HUA_FEI_CHA_XUN:
                System.out.println("话费充值");
                break;
            case HUA_FEI_CHONG_ZHI:
                System.out.println("话费查询");
                break;
            case LIU_LIANG_CHA_XUN:
                System.out.println("流量充值");
                break;
            case LIU_LIANG_CHONG_ZHI:
                System.out.println("流量查询");
                break;
            case REN_GONG_FU_WU:
                System.out.println("人工服务");
                break;
        }
    }
}
